package cn.stylefeng.guns.modular.fileAssociation.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 文件关联
 * </p>
 *
 * @author jalor
 * @since 2019-10-21
 */
@TableName("file_association")
public class FileAssociation implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 类型[1=产品,2=功能,3=需求,4=里程碑]
     */
    @TableField("type")
    private Integer type;

    /**
     * 源数据ID
     */
    @TableField("source_id")
    private Long sourceId;

    /**
     * 文件ID
     */
    @TableField("file_id")
    private Long fileId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getSourceId() {
        return sourceId;
    }

    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }

    public Long getFileId() {
        return fileId;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    @Override
    public String toString() {
        return "FileAssociation{" +
        "id=" + id +
        ", type=" + type +
        ", sourceId=" + sourceId +
        ", fileId=" + fileId +
        "}";
    }
}
